package com.youle.askdao.common.result;

/**
 * Created by XiaoGe on 2018/9/27.
 * 自定义的异常
 */
public class ResultException extends Exception {
    private String errorCode;

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    /**
     *
     * @param errorCode：错误码
     * @param message：错误的信息
     */
    public ResultException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public ResultException() {

    }

    public ResultException(String message) {
        super(message);
    }
}
